//
//  SYS_DisplayWithBlankView.m
//  System_App
//
//  Created by czy001 on 2017/12/4.
//  Copyright © 2017年 czy001. All rights reserved.
//

#import "SYS_DisplayWithBlankView.h"

@implementation SYS_DisplayWithBlankView

- (id)initWithFrame:(CGRect)frame
{
    self=[super initWithFrame:frame];
    if (self) {
        //        float width=[UIScreen mainScreen].bounds.size.width;
        self.userInteractionEnabled=NO;
        float height=frame.size.width*0.5;
        
        _photo=[[UIImageView alloc] initWithFrame:CGRectMake((frame.size.width-height)/2, 20, height, height)];
        _photo.contentMode=UIViewContentModeScaleAspectFill;
        _photo.clipsToBounds=YES;
        _photo.layer.cornerRadius=height/2;
        _photo.layer.masksToBounds=YES;
        [self addSubview:_photo];
        
        _title=[[UILabel alloc] initWithFrame:CGRectMake(10, height+35, frame.size.width-20, 40)];
        _title.numberOfLines=0;
        _title.textColor=RGBACOLOR(168, 168, 168, 1);
        _title.textAlignment=NSTextAlignmentCenter;
        _title.font=[UIFont systemFontOfSize:14];
        [self addSubview:_title];
        
    }
    return self;
}


@end
